/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marketrmi;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author yann
 */
public interface ItemInter extends Remote {

    public String getItemName() throws RemoteException;

    public int getPrice() throws RemoteException;

    public String getSellerName() throws RemoteException;

    public int getId() throws RemoteException;

    public void setName(String Name) throws RemoteException;

    public void setPrice(int price) throws RemoteException;

    public void buy(AccountClientInter accBuyer, String passBank) throws RemoteException, Rejected;

    public void addWish(AccountClientInter accWisher, int maxPrice) throws RemoteException, Rejected;

    public void changePrice(AccountClientInter accOwner, int newPrice) throws RemoteException, Rejected;

    public void deleteItem(AccountClientInter accOwner) throws RemoteException, Rejected;
}
